import request from "@/utils/request";


// 获取列表
export function getAllList(query) {
  return request({
    url: "/losRepEsc/getPage",
    method: "get",
    params: query,
  });
}

// 保存审核
export function auditSave(data) {
  return request({
    url: "/losRepEsc/check",
    method: "post",
    data:data
  });
}

// 导入
export function saveData(data) {
  return request({
    url: "/losRepEsc/reportImport",
    method: "post",
    data:data,
    headers: {"Content-type": "multipart/form-data"},
  });
}

// 提交
export function updateData(data) {
  return request({
    url: "/losRepEsc/submit/" + data,
    method: "post",
    // data:data,
  });
}

// 查看
export function getDetail(id) {
  return request({
    url: "/losRepEsc/findById",
    method: "get",
    params:id
  });
}